import { request } from './request.js'
import { requestSecond } from './requestSecond.js'
import { requestThird } from './requestThird.js'

// 机器狗停止/前进状态更新接口
const dogStatusUpdate = (data) => {
	return request({
		url:"/vue/implement/expo/dogStatusUpdate",
		method:'get',
		data
	})
}
// 重置复位
const expoReset = () => {
	return request({
		url:"/vue/implement/expo/reset",
		method:'get',
	})
}
// 获取列表
const getRiskListFromCache = () => {
	return requestSecond({
		url:"/imageInfo/getRiskListFromCache",
		method:'get',
	})
}
// 清空所有数据
const resetRiskListCache = () => {
	return requestSecond({
		url:"/imageInfo/resetRiskListCache",
		method:'get',
	})
}
// 列表选择提交
const sendRiskToPlat = (data) => {
	return requestSecond({
		url:"/imageInfo/sendRiskToPlat",
		method:'get',
		data
	})
}
// 路面修复
const repairRiskToPlat = () => {
	return requestSecond({
		url:"/imageInfo/repairRiskToPlat",
		method:'get'
	})
}
const repairPci = () => {
	return requestThird({
		url:"/yanghu/repairPci",
		method:'post'
	})
}
// 科学决策列表
const getVideoList = () => {
	return requestThird({
		url:"/yanghu/getVideoList",
		method:'post'
	})
}
// 科学决策修复按钮
const editVideoStatus = (data) => {
	return requestThird({
		url:"/yanghu/editVideoStatus",
		method:'post',
		data
	})
}
// 更改页面显示
const editThreeStatus = (data) => {
	return requestThird({
		url:"/yanghu/editThreeStatus",
		method:'post',
		data
	})
}
// 变更路线编码
const editRoadNo = (data) => {
	return requestThird({
		url:"/yanghu/editRoadNo",
		method:'get',
		data
	})
}
// 科学决策+基础底座 重置
const resetAll = () => {
	return requestThird({
		url:"/yanghu/resetAll",
		method:'post'
	})
}
export {
	dogStatusUpdate,
	expoReset,
	getRiskListFromCache,
	resetRiskListCache,
	sendRiskToPlat,
	repairRiskToPlat,
	repairPci,
	getVideoList,
	editVideoStatus,
	editThreeStatus,
	editRoadNo,
	resetAll
}